package com.bilibili.juc.arthas;

import java.util.ArrayList;
import java.util.Arrays;

public class MyTest {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");
        String[] arr = new String[list.size()];
//        String[] arr = new String[1];
        list.toArray(arr);
        System.out.println(Arrays.toString(arr));


        String str = "12356";
        for (char c : str.toCharArray()) {
            System.out.println(c +" " +Character.isDigit(c));
        }
        System.out.println("==========================");
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            System.out.println(c +" " +Character.isDigit(c));
        }

    }
}
